package com.aaa.security.handle;

import com.aaa.security.exception.PermissionException;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;


@RestControllerAdvice
public class MyExceptionHandler {
    @ExceptionHandler(value = PermissionException.class)
    public Result<String> handle01(PermissionException e){
        return new Result<>(4001,e.getMessage());
    }
}
